/*
* $Id: ViewFamilies.h 13 2010-01-10 00:27:44Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _VIEW_FAMILIES_H_
#define _VIEW_FAMILIES_H_

#include "ViewTable.h"

class CViewFamilies : public CViewTable, public ISubscriber
{
protected:
	virtual void Init();
	void SetManipulation(JournalEnum::typeItemMnpl type, int nId);
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnAddFamily();
	afx_msg void OnDeleteFamily();
	afx_msg void OnChangeFamily();
public:
	CViewFamilies(CState* pState);
	virtual ~CViewFamilies();
public:
	virtual bool IsViewState(State state);
	virtual void SetState();
	virtual void EventHandler();
};

#endif/*_VIEW_FAMILIES_H_*/